using System;
using System.Data;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace HomeCare
{
    public partial class XRGeneralReport : DevExpress.XtraReports.UI.XtraReport
    {
        public XRGeneralReport(DataSet ds)
        {
            InitializeComponent();

            this.DataSource = ds.Tables[0];
        }

        public void setInfo(DateTime dtFrom, DateTime dtTo, String company)
        {
            String title = company + " General Report for " +
                           dtFrom.ToShortDateString() + " - " +
                           dtTo.ToShortDateString();

            XRLB_Title.Text = title;
        }
    }
}
